import request from '@/utils/request'

// 查询非遗项目汇总列表
export function listAll(query) {
  return request({
    url: '/books/all/list',
    method: 'get',
    params: query
  })
}

// 查询非遗项目汇总详细
export function getAll(allId) {
  return request({
    url: '/books/all/' + allId,
    method: 'get'
  })
}

// 新增非遗项目汇总
export function addAll(data) {
  return request({
    url: '/books/all',
    method: 'post',
    data: data
  })
}

// 修改非遗项目汇总
export function updateAll(data) {
  return request({
    url: '/books/all',
    method: 'put',
    data: data
  })
}

// 删除非遗项目汇总
export function delAll(allId) {
  return request({
    url: '/books/all/' + allId,
    method: 'delete'
  })
}
